﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Composite.Modularity;
using MP3Ganizer.Common.BaseObject;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Composite.Regions;
using MP3Ganizer.Common.Interfaces.DirectoryLoader;
using MP3Ganizer.Modules.DirectoryLoader.ViewModels;
using MP3Ganizer.Modules.DirectoryLoader.Views;
using MP3Ganizer.Modules.DirectoryLoader.Controllers;

namespace MP3Ganizer.Modules.DirectoryLoader
{
     [Module(ModuleName = "DirectoryLoaderModule"), ModuleDependency("InfrastructuresModule")]
    public class DirectoryLoaderModule : ModuleBase<IDirectoryLoaderController>
    {
        public DirectoryLoaderModule(IUnityContainer unityContainer, IRegionManager regionManager)
            : base(unityContainer, regionManager)
        {
        }

        protected override void RegisterViewsAndServices()
        {
            Container.RegisterType<IDirectoryLoaderView, DirectoryLoaderView>();
            Container.RegisterType<IDirectoryLoaderViewModel, DirectoryLoaderViewModel>();
            Container.RegisterType<IDirectoryLoaderController, DirectoryLoaderController>();
        }

    }
}
